package com.minjiang.model.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName food_type
 */
@TableName(value ="food_type")
@Data
public class FoodType implements Serializable {
    /**
     * 
     */
    @TableId
    private String id;

    /**
     * 食物类型名称
     */
    private String typeName;

    public FoodType(String id, String typeName) {
        this.id = id;
        this.typeName = typeName;
    }

    // 下级列表
    @TableField(exist = false)
    private List<FoodType> children;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}